﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RCSP.Common.Configurations
{
    /// <summary>
    /// Application configuration base
    /// </summary>
    [Serializable]
    public class AppConfigurationSection
    {
        [System.Xml.Serialization.XmlIgnore]
        public TimeSpan DefaultCacheTimeSpan
        {
            get { return TimeSpan.Parse(DefaultCacheTimeSpanString); }
        }

        public string DefaultCacheTimeSpanString { get; set; }

        /// <summary>
        /// Entity mappings
        /// </summary>
        [System.Xml.Serialization.XmlElement("EntityMapping")]
        public List<XmlEntityMappingConfiguration> Mappings { get; set; }
    }
}
